import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

class LogEntry implements Serializable {
    private LocalDateTime time;
    private String actionType;
    private String operator;

    public LogEntry(String actionType, String operator) {
        this.time = LocalDateTime.now();
        this.actionType = actionType;
        this.operator = operator;
    }

    @Override
    public String toString() {
        return String.format("[%s] %s - 操作人: %s", time, actionType, operator);
    }
}

class Logger implements Serializable {
    private List<LogEntry> logs;

    public Logger() {
        logs = new ArrayList<>();
    }

    public void logAction(String actionType, String operator) {
        logs.add(new LogEntry(actionType, operator));
        System.out.println("操作已记录: " + actionType);
    }

    public void showLogs() {
        System.out.println("\n===== 操作日志 =====");
        logs.forEach(System.out::println);
    }

    public List<LogEntry> getLogs() {
        return logs;
    }
}